<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
        <base id="base" href="${basePath}">
		<title>消息通知</title>
		<script src="js/base.js"></script>
	</head>
	<style type="text/css">
        .left_arrow{
            width: 23px;
            height: 25px;
            top: 13px;
            left: 15px;
            background-size: 50%;
            position: absolute;
            background-image: url(../img/arrow_left.png);
            z-index: 100;
        }
		.top{
		    height: 50px;
		    line-height: 50px;
		    background-color: #424242;
		    text-align: center;
		}
		.types {
		    padding: 0px 15px;
		    width: 100%;
		    background-color: #393939;
		    line-height: 34px;
		    box-sizing: border-box;
		}
		.choosetype {
		    border-bottom: 2px solid #E60020;
		}
		.cpad{
			padding: 0px 50px;
    		box-sizing: border-box;
		}
		.notice_box{
			padding: 0px 15px;
			box-sizing: border-box;
		}
		.message_box{
			margin-bottom: 60px;
		}
		.message_icon{
		    width: 50px;
    		height: 50px;
		}
		.message_icon img{
			width: 100%;
			height: 100%;
		}
		.box {
		    /*width: 32.40741%;*/
		    /*float: left;*/
		    margin-left: 0.46296%;
		    margin-right: 0.46296%;
		    position: relative;
		    background: #393939;
		    color: #fff;
		    padding: 1%;
		    margin: 5%;
		    height: 60px;
		    white-space: nowrap;
		    /*border-radius: 5px;*/
		    margin-left: 68px;
		}
		.box:after {
		    content: " ";
		    position: absolute;
		    height: 0;
		    width: 0;
		    border: solid transparent;
		    pointer-events: none;
		    border-width: 10px;
		    border-color: transparent;
		}
		.pointer--left {
		    animation: animate-pointer--left 500ms ease-in-out;
		    transform-origin: left center;
		}
		.pointer--left:after {
		    border-right-color: #393939;
		    top: 15%;
		    left: -19px;
		}
	</style>
	<script type="text/javascript">
		var o;
		avalon.ready(function(){
			o = avalon.define({
				$id:"wm",
				currentType:1,
				ChooseType:function(tabId){
		            o.currentType=tabId;
		        }
			});
			avalon.scan(document.body);
		})
	</script>
	<body ms-controller="wm">
	<div class="top"><span class="left_arrow bgBox" onclick="javascript:location.href='news/index';"></span><!--{{currentType==1?"价格预警":"系统通知"}}-->消息通知</div>
		<div class="types hidden">
			<div class="w50 fl tc cpad" ms-click="ChooseType(1)"><span class="inline_block w100" ms-class-choosetype="currentType==1">价格预警</span></div>
			<div class="w50 fl tc cpad" ms-click="ChooseType(2)"><span class="inline_block w100"  ms-class-choosetype="currentType==2">系统通知</span></div>
		</div>

	<div ms-visible="currentType==1">
			<div class="notice_box mt30">
				<#list quotationList as hangqing>
                    <div class="message_box">
                        <div class="tc w100 color999 f10">${.now}</div>
                        <div>
                            <div class="message_icon fl">
                                <img src="../img/message_icon.png" />
                            </div>
                            <div class="box pointer--left">${hangqing.content}</div>
                        </div>
                    </div>
				</#list>
			</div>
		</div>
		<div ms-visible="currentType==2">
			<div class="notice_box mt30">

				<#list systemList as xitong>
                    <div class="message_box">
                        <div class="tc w100 color999 f10">${.now}</div>
                        <div>
                            <div class="message_icon fl">
                                <img src="../img/systerm_icon.png" />
                            </div>
                            <div class="box pointer--left">${xitong.content}</div>
                        </div>
                    </div>
				</#list>

			</div>
		</div>
	</body>
</html>
